﻿using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace TC4T_WinForm
{
    static class Program
    {
        static Program()
        {
            log4net.Config.XmlConfigurator.Configure(new System.IO.FileInfo(@"config/Log4net.xml"));
            log4net.Config.XmlConfigurator.ConfigureAndWatch(new System.IO.FileInfo(@"config/Log4net.xml"));
        }
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            LoginForm login =new LoginForm();
            login.ShowDialog();
            if(MyTCSession.LoginUser!=null)
                Application.Run(new MainForm());
        }
    }
}
